﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;

namespace cadbom
{
    class OutMsg
    {
        private static readonly string FileName = Directory.GetCurrentDirectory() + @"\" + "test.txt";
        public void AddMsg(string context)
        {
            StreamWriter sw = File.AppendText(FileName);
            sw.WriteLine(DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + " -> " + context);
            sw.Flush();
            sw.Close();
        }
    }
}
